﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MainModalidadeHorario.aspx.cs" Inherits="AcademiaInteligenteWeb.MainModalidadeHorario" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Modalidade <asp:Label Text="" ID="lblModalidadeDescricao" runat="server" />
    </h1>
   <div id="formulario">
       <table>
           <tr>
               <td>Hora:</td>
               <td>
                   <asp:TextBox runat="server" ID="txtHora" CssClass="isTime" />
               </td>
               <td>Dia Semana</td>
               <td>
                   <asp:DropDownList runat="server" ID="ddlDiaSemana">
                       <asp:ListItem Text="Segunda" Value="0" />
                       <asp:ListItem Text="Terça" Value="1" />
                       <asp:ListItem Text="Quarta" Value="2" />
                       <asp:ListItem Text="Quinta" Value="3" />
                       <asp:ListItem Text="Sexta" Value="4" />
                       <asp:ListItem Text="Sabado" Value="5" />
                       <asp:ListItem Text="Domingo" Value="6" />
                   </asp:DropDownList>
               </td>
               <td>Duração:</td>
               <td>
                   <asp:TextBox runat="server" ID="txtDuracao" CssClass="isTime" />
               </td>
               <td>
                   <asp:Button Text="Salvar" ID="btnSalvar" runat="server" OnClick="btnSalvar_Click" />
               </td>
           </tr>
       </table>
   </div>
    <div id="acoes">
        <ul>
            <li>
                <a href="NewModalidade.aspx">Nova</a>
            </li>
            
            <li class="itemSelected">
                <asp:LinkButton Text="Alterar" ID="lnkAlterar" runat="server" OnClick="lnkAlterar_Click" />
            </li>
            <li class="itemSelected">
                <asp:LinkButton Text="Excluir" Id="lnkExcluir" runat="server" OnClick="lnkExcluir_Click" />
                <asp:HiddenField ID="hfCurrentItem" ClientIDMode="Static" runat="server" />
            </li>       
        </ul>
    </div>
    <div id="dados">
        <asp:GridView ID="grdModalidadesHorario" runat="server" AutoGenerateColumns="false" AllowPaging="true">
            <AlternatingRowStyle CssClass="alterningRow" />
            <SelectedRowStyle CssClass="selectedRow" />
            <Columns>

                 <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  HeaderStyle-Width="30px">
                    <ItemTemplate>
                        <input type="checkbox" name="chkSelect" class="checkboxGrid" value='<%#Eval("id")%>' />
                    </ItemTemplate>
                </asp:TemplateField> 
                <asp:BoundField DataField="Dia" HeaderText="Dia Semana"/>
                <asp:BoundField DataField="Hora" HeaderText="Hora" DataFormatString="{0:HH:mm}" />
                <asp:BoundField DataField="Duracao" HeaderText="Duração" DataFormatString="{0:HH:mm}" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>